package com.fz.us.admin.company.entity;

import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

/**
 * 实体类 - 公司表单 基类
 * ============================================================================
 * 版权所有 2016 。
 *
 * @author fallenpanda
 * @version 1.0 2016-08-02 。
 * ============================================================================
 */
@MappedSuperclass
public class CompanyFormEntity extends CompanyEntity {

    private static final long serialVersionUID = -286382007668257765L;

    /**
     * 创建人职权
     */
    protected Duty createrDuty;
    /**
     * 创建人部门
     */
    protected Department createrDepartment;



    @ManyToOne(fetch = FetchType.LAZY)
    public Duty getCreaterDuty() {
        return createrDuty;
    }

    public void setCreaterDuty(Duty createrDuty) {
        this.createrDuty = createrDuty;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    public Department getCreaterDepartment() {
        return createrDepartment;
    }

    public void setCreaterDepartment(Department createrDepartment) {
        this.createrDepartment = createrDepartment;
    }

}
